package 脚本;

import java.awt.*;
import java.awt.event.InputEvent;
import java.awt.event.KeyEvent;

public class 上下走刷闪 {
    public static void main(String[] args) {
        Robot ro = null;
        qwq q=new qwq();
        int p=0;
        try {
            ro = new Robot();
        } catch (AWTException awtException) {
            awtException.printStackTrace();
        }
        ro.delay(2000);
        while(1==1) {
            for (int i = 0; i < 60; i++) {
                ro.mouseMove(488,591);
                ro.mousePress(InputEvent.BUTTON1_DOWN_MASK);
                ro.mouseRelease(InputEvent.BUTTON1_DOWN_MASK);
                ro.keyPress(KeyEvent.VK_W);
                ro.delay(500);
                ro.keyRelease(KeyEvent.VK_W);
                ro.mousePress(InputEvent.BUTTON1_DOWN_MASK);
                ro.mouseRelease(InputEvent.BUTTON1_DOWN_MASK);
                ro.keyPress(KeyEvent.VK_S);
                ro.delay(500);
                ro.keyRelease(KeyEvent.VK_S);
                ro.mousePress(InputEvent.BUTTON1_DOWN_MASK);
                ro.mouseRelease(InputEvent.BUTTON1_DOWN_MASK);
                p++;
                ro.mouseMove(830,602);
                ro.delay(100);
                ro.mousePress(InputEvent.BUTTON1_DOWN_MASK);
                ro.mouseRelease(InputEvent.BUTTON1_DOWN_MASK);
            }
            ro.mouseMove(769,458);
            ro.delay(100);
            ro.mousePress(InputEvent.BUTTON1_DOWN_MASK);
            ro.mouseRelease(InputEvent.BUTTON1_DOWN_MASK);
        }
    }
}